#include <iostream>
#include <string>
#include <sstream>
using namespace std;

int main(int, char**) {
	string crate[9][20][16];

	for (int c = 0; c < 2880; c++) {
		int l = c / 320;
		int i = (c % 320) / 16;
		int j = (c % 320) % 16;
		if (c < 2760) {
			stringstream ss;
			ss << c;
			crate[l][i][j] = ss.str();
		} else
			crate[l][i][j] = "-1";
	}

	string header = "";
	for (int l = 0; l < 9; l++) {
		int maxI;
		if (l == 8)
			maxI = 13;
		else
			maxI = 20;
		stringstream cNumSS;
		cNumSS << l;
		stringstream maxISS;
		maxISS << maxI;
		header += "int Crate" + cNumSS.str() + "_CHID[" + maxISS.str() + "][16]={";
		for (int i = 0; i < maxI; i++) {
			header += '{';
			for (int j = 0; j < 16; j++) {
				header += crate[l][i][j];
				if (j < 15)
					header += ',';
			}
			header += '}';
			if (i < maxI - 1)
				header += ',';
		}
		header += "};\n\n";
	}

	cout << header;

	return 0;
}
